package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.LawsRegulationsExample.E_CONTENT;
import static org.jsola.hr.example.LawsRegulationsExample.E_CONTENT_HAS_STYLE;
import static org.jsola.hr.example.LawsRegulationsExample.E_COVER_IMG;
import static org.jsola.hr.example.LawsRegulationsExample.E_DETAIL_HEADER_IMG;
import static org.jsola.hr.example.LawsRegulationsExample.E_IS_TOP;
import static org.jsola.hr.example.LawsRegulationsExample.E_SORT;
import static org.jsola.hr.example.LawsRegulationsExample.E_TITLE;
import static org.jsola.hr.example.LawsRegulationsExample.E_TYPE_CODE;
import static org.jsola.hr.example.LawsRegulationsExample.M_CONTENT_HAS_STYLE_MAX;
import static org.jsola.hr.example.LawsRegulationsExample.M_CONTENT_MAX;
import static org.jsola.hr.example.LawsRegulationsExample.M_COVER_IMG_MAX;
import static org.jsola.hr.example.LawsRegulationsExample.M_COVER_IMG_NOT_NULL;
import static org.jsola.hr.example.LawsRegulationsExample.M_DETAIL_HEADER_IMG_MAX;
import static org.jsola.hr.example.LawsRegulationsExample.M_TITLE_MAX;
import static org.jsola.hr.example.LawsRegulationsExample.M_TITLE_NOT_NULL;
import static org.jsola.hr.example.LawsRegulationsExample.M_TYPE_CODE_MAX;
import static org.jsola.hr.example.LawsRegulationsExample.M_TYPE_CODE_NOT_NULL;
import static org.jsola.hr.example.LawsRegulationsExample.N_CONTENT;
import static org.jsola.hr.example.LawsRegulationsExample.N_CONTENT_HAS_STYLE;
import static org.jsola.hr.example.LawsRegulationsExample.N_COVER_IMG;
import static org.jsola.hr.example.LawsRegulationsExample.N_DETAIL_HEADER_IMG;
import static org.jsola.hr.example.LawsRegulationsExample.N_IS_TOP;
import static org.jsola.hr.example.LawsRegulationsExample.N_SORT;
import static org.jsola.hr.example.LawsRegulationsExample.N_TITLE;
import static org.jsola.hr.example.LawsRegulationsExample.N_TYPE_CODE;

/**
 * 卫人云-政策法规
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【卫人云-政策法规】的参数")
@Data
public class LawsRegulationsUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_TITLE, example = E_TITLE, required = true)
    @NotNull(message = M_TITLE_NOT_NULL)
    @Length(max = 50, message = M_TITLE_MAX)
    private String title;

    @ApiModelProperty(notes = N_TYPE_CODE, example = E_TYPE_CODE, required = true)
    @NotNull(message = M_TYPE_CODE_NOT_NULL)
    @Length(max = 32, message = M_TYPE_CODE_MAX)
    private String typeCode;

    @ApiModelProperty(notes = N_COVER_IMG, example = E_COVER_IMG, required = true)
    @NotNull(message = M_COVER_IMG_NOT_NULL)
    @Length(max = 500, message = M_COVER_IMG_MAX)
    private String coverImg;

    @ApiModelProperty(notes = N_DETAIL_HEADER_IMG, example = E_DETAIL_HEADER_IMG)
    @Length(max = 500, message = M_DETAIL_HEADER_IMG_MAX)
    private String detailHeaderImg;

    @ApiModelProperty(notes = N_CONTENT, example = E_CONTENT)
    @Length(max = 2147483647, message = M_CONTENT_MAX)
    private String content;

    @ApiModelProperty(notes = N_CONTENT_HAS_STYLE, example = E_CONTENT_HAS_STYLE)
    @Length(max = 2147483647, message = M_CONTENT_HAS_STYLE_MAX)
    private String contentHasStyle;

    @ApiModelProperty(notes = N_SORT, example = E_SORT)
    private Integer sort;

    @ApiModelProperty(notes = N_IS_TOP, example = E_IS_TOP)
    private Boolean isTop;


}

